<!DOCTYPE html>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><title>
	炮弹走私
</title><script language="javascript" type="text/javascript"> 
			var applicationPath = "";
		</script>
<meta http-equiv="content-language" content="zh-CN" />
<link rel="icon" type="image/x-icon" href="http://www.wxmaiyatang.cn/favicon.ico" media="screen" />
<link rel="shortcut icon" type="image/x-icon" href="http://www.wxmaiyatang.cn/favicon.ico" media="screen" />
<meta name="author" content="Hishop development team" />
<meta name="GENERATOR" content="微分销" />
<meta name="renderer" content="webkit" /><link rel="stylesheet" href="http://apps.bdimg.com/libs/bootstrap/3.3.4/css/bootstrap.min.css" />
<script type="text/javascript" src="admin/js/browserdetect.js"></script>
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js" type="text/javascript"></script>
<script src="http://apps.bdimg.com/libs/bootstrap/3.3.4/js/bootstrap.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="admin/css/bootstrap-datetimepicker.min.css" />
<script type="text/javascript" src="admin/js/bootstrap-datetimepicker.js"></script>
<script type="text/javascript" src="admin/js/bootstrap-datetimepicker.zh-CN.js"></script>
<script type="text/javascript" src="admin/js/jquery.formvalidation.js"></script>
<link rel="stylesheet" href="admin/css/common.css" />
<script src="admin/js/Framenew.js?3.3.1bk1"></script>
<meta name="keywords" /><meta name="description" />
	<!--[if lt IE 9]>
	  <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
	  <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
	
	<script src="../js/ZeroClipboard.min.js"></script>

	<script type="text/javascript">

		$(document).ready(function () {
			var tableTitle = $('.activediv').offset().top - 58;
			$(window).scroll(function () {
				if ($(document).scrollTop() >= tableTitle) {
					$('.activediv').css({
						position: 'fixed',
						top: '58px',
						borderBottom: '1px solid #ccc',
						boxShadow: '0 1px 3px #ccc',
						width: '1020px',
					})
				}
				//if ($(document).scrollTop() + $('.activediv').height() + 58 <= tableTitle) {
				if ($(document).scrollTop() + 58 <= tableTitle) {
					$('.activediv').attr("style", "background-color: rgb(255, 255, 255);");
				}
			});
		})

		$(document).ready(function () {
			var bfinished = $('#bFinishedHidden').val();
			if (bfinished == "True") {
				$('#operateDiv').show();
				$('.select-page').hide();
			}
			else {
				$('#operateDiv').hide();
				$('.select-page').show();
			}
			setHeader();
			setTabContent();
			$('#ctl00_ContentPlaceHolder1_txt_totalNum').blur(function () {
				testInput(this);
			});

			$('#selectAll').click(function () {
				var check = $(this).prop('checked');
				$("input[type='checkbox'][disabled!='disabled']").each(function () {
					$(this).prop('checked', check);
				});
			});

			$('.table tbody tr').each(function () {
				var id = $(this).eq(0).find(".fz").attr("id");
				var copy = new ZeroClipboard(document.getElementById(id), {
					moviePath: "../js/ZeroClipboard.swf"
				});
				copy.on('complete', function (client, args) {
					HiTipsShow("复制成功，复制内容为：" + args.text, 'success');
				});
			});
		});

		function GetProductId() {
			var v_str = "";
			$("input[type='checkbox'][name='CheckBoxGroup']:checked").each(function (rowIndex, rowItem) {
				v_str += $(rowItem).attr("value") + ",";
			});
			if (v_str.length == 0) {
				HiTipsShow("请选择优惠券", "warning")
				return "";
			} 
			return v_str.substring(0, v_str.length - 1);
		}

		function winqrcode(url) {
			$("#imagecode").attr('src', "http://s.jiathis.com/qrcode.php?url=" + url);
			$('#divqrcode').modal('toggle').children().css({
				width: '300px',
				height: '300px'
			});
			$("#divqrcode").modal({ show: true });
		}
		function closeModal(obj) {
			$("#" + obj).modal('hide');
			location.reload();
		}

		function setHeader() {
			$('th').each(function () {
				$(this).css('text-align', 'center');
			});
		}

		function setActive(obj) {
			if (obj == false) {
				$('#tabHeader_couponds').removeClass();
				$('#tabHeader_Finished').removeClass();
				$('#tabHeader_couponds').addClass('active');
			}
			else {
				$('#tabHeader_couponds').removeClass();
				$('#tabHeader_Finished').removeClass();
				$('#tabHeader_Finished').addClass('active');
			}
		}

		function setTabContent() {
			var bfinish = $('#bFinishedHidden').val().toLowerCase() == "true" ? true : false;
			setActive(bfinish);
			if (!bfinish) {
				$('span[stitle="qrc"]').each(function () {
					$(this).css('display', '');
				});
				$('span[stitle="FinishSpan"]').each(function () {
					$(this).css('display', '');
				});
				$('span[stitle="unFinishSpan"]').each(function () {
					$(this).css('display', 'none');
				});

				$('span[stitle="DeleteSpan"]').each(function () {
					$(this).css('display', 'none');
				});

				$('span[stitle="modifyProductSpan"]').each(function () {
					$(this).css('display', 'none');
					var obj = $(this).prev().prev().prev().prev().prev().prev().val().toLowerCase();
					if (obj == "true") {
						$(this).css('display', 'none');
					}
					else {
						$(this).css('display', 'block');
					}
				});
			}
			else {
				$('span[stitle="qrc"]').each(function () {
					$(this).css('display', 'none');
				});
				$('span[stitle="FinishSpan"]').each(function () {
					$(this).css('display', 'none');
				});
				$('span[stitle="unFinishSpan"]').each(function () {
					$(this).css('display', '');
				});
				$('span[stitle="modifyProductSpan"]').each(function () {
					$(this).css('display', 'none');
				});
				$('span[stitle="DeleteSpan"]').each(function () {
					$(this).css('display', '');
				});
			}
		}

		function confirmFinished(obj) {
			if (HiConform("结束优惠券<p>结束优惠券，是否继续？</p>", obj)) {
				return true;
			}
			else {
				return false;
			}
		}

		function toDate(str) {
			str = str.replace(/-/g, "/");
			var date = new Date(str);
			return date;
		}

		function useCoupon(obj, couponId, flag) {
			if (flag.toLowerCase() == "false") {
				if (HiConform("<strong>启用优惠券<p>启用优惠券，是否继续？</p></strong>", obj)) {
					return true;
				}
				else {
					return false;
				}
			}
			else {
				if (HiConform("<strong>1、启用优惠券，是否继续？<p>\n 2、优惠券已过期，重新设定有效期？</p> </strong>", obj)) {
					//弹出修改窗体                    
					$('#ctl00_ContentPlaceHolder1_txt_used').val("true");
					showModel(couponId);
					return false;
				}
				else {
					return false;
				}
			}
		}

		function showModel(id) {

			$.ajax({
				type: "post",
				url: "GetCouponDataHandler.ashx?id=" + id,
				data: {},
				dataType: "json",
				success: function (data) {
					if (data.type == "success") {
						var total = Number(data.data.StockNum);// + Number(data.data.ReceiveNum);
						$('#ctl00_ContentPlaceHolder1_txt_totalNum').val(total);
						$('#ctl00_ContentPlaceHolder1_ddl_maxNum').val(data.data.maxReceivNum);
						$('#ctl00_ContentPlaceHolder1_calendarStartDate2_txtDateTimePicker').val(data.data.BeginDate.replace("T", " "));
						$('#ctl00_ContentPlaceHolder1_calendarEndDate2_txtDateTimePicker').val(data.data.EndDate.replace("T", " "));
					}
				}
			});

			$('#ctl00_ContentPlaceHolder1_txt_id').val(id);

			$('#previewshow').modal('toggle').children().css({
				width: '500px',
				top: '200px'
			});

		}


		function testInput(obj) {
			var id = $(obj).attr("id");
			var content = $(obj).val();
			var regex;
			var parent;
			var btn;

			var flag = false;

			if (id == $('#ctl00_ContentPlaceHolder1_txt_totalNum').attr('id')) {
				regex = /^[0-9]*$/;
				parent = $(obj).parent().parent();
				flag = true;
			}

			if (flag) {
				if (testRegex(regex, content) && content != "") {
					$(parent).removeClass();
					$(parent).addClass("form-group");
					$('#ctl00_ContentPlaceHolder1_btnSubmit').removeAttr('disabled');
				}
				else {
					$(parent).removeClass();
					$(parent).addClass("form-group has-error");
					$('#ctl00_ContentPlaceHolder1_btnSubmit').removeAttr('disabled');
					$('#ctl00_ContentPlaceHolder1_btnSubmit').attr('disabled', 'disabled');
				}
			}

		}

		function testRegex(rgx, str) {
			if (str == "") return true;
			return result = rgx.test(str);
		}

		function setDel(id, obj) {
			var flag = true;
			if (id == null) {
				id = "";
				$("#ctl00_ContentPlaceHolder1_grdCoupondsList input:checkbox").each(function () {
					if (!flag) return;
					if ($(this).prop('checked')) {
						id += "," + $(this).parent().parent().find("#hdCouponId").val();
					}
				});
				if (id.length > 1) {
					id = id.substr(1);
				}
				else {
					ShowMsg('请选择优惠券！', false);
					flag = false;
					return;
				}
			}
			if (HiConform("删除优惠券，是否继续？", obj)) {
				flag = true;
			}
			else {
				flag = false;
			}
			if (flag) {
				$('#ctl00_ContentPlaceHolder1_txt_ids').val(id);
				$('#ctl00_ContentPlaceHolder1_DelBtn').click();
			}

		}
	</script>
	<style type="text/css">
		#ctl00_ContentPlaceHolder1_grdCoupondsList th {
			margin: 0px;
			border-left: 0px;
			border-right: 0px;
			background-color: #F7F7F7;
			text-align: center;
			vertical-align: middle;
		}

		#ctl00_ContentPlaceHolder1_grdCoupondsList td {
			margin: 0px;
			border-left: 0px;
			border-right: 0px;
			vertical-align: middle;
		}

		#searchDiv input {
			margin-right: 20px;
		}

		.ml20 {
			margin-left: 20px;
		}
	</style>
</head>
<body class="theme theme--blue">

	<header class="ui-header navbar-fixed-top">
		<div class="ui-header-inner clearfix">
			<h1 class="ui-header-logo">
				<a href="/admin/" title="管理后台">
					<span class="version"><i>3.4</i></span>
				</a>
			</h1>
			<nav class="ui-header-nav">
				<ul class="clearfix">
					<li class="divide">|</li>
					<li mid="m01"><a href="Default.html" title="店铺">店铺</a></li>
					<li mid="m02"><a href="productonsales.html" title="商品">商品</a></li>
					<li mid="m03"><a href="manageorder.html" title="订单">订单</a></li>
					<li class="divide">|</li>
					<li mid="m04"><a href="MemberGaiKuang.html" title="会员">会员</a></li>
					<li mid="m05"><a href="DistributorSummary.html" title="分销">分销</a></li>
					<li class="divide">|</li>
			<!-- 		<li mid="m06"><a href="#" title="微信">微信</a></li>
					<li mid="m07"><a href="#" title="微博">微博</a></li>
					<li mid="m11"><a href="#" title="服务窗">服务窗</a></li>
					<li class="divide">|</li> -->
					<li class=" active" mid="m08"><a href="CouponsList.html" title="营销">营销</a></li>
					<li class="divide">|</li>
					<li mid="m09"><a href="Alipay.html" title="设置">设置</a></li>
					<li mid="m10"><a href="salereport.html" title="分析统计">分析统计</a></li>
				</ul>

			</nav>
			<div class="ui-header-user ">
				<div class="customer-wrap">
				</div>
				<div class="dropdown hover dropdown-right">
					<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
						<span class="txt">
							<span class="ellipsis team_name">炮弹走私</span><span class="dash"> - </span><span>admin</span>
						</span>
						<i class="caret"></i>
					</a>
					<ul class="dropdown-menu">
						<li><a href="/admin/Settings/EditManager.aspx?UserID=1"><span class="glyphicon glyphicon-user"></span>个人信息</a></li>
						<li><a href="/admin/Settings/EditManagerPassword.aspx?UserID=1"><span class="glyphicon glyphicon-list-alt"></span>修改密码</a></li>
						<li class="divide"></li>
						<li><a href="/Admin/LoginExit.aspx"><span class="glyphicon glyphicon-indent-right"></span>退出</a></li>
					</ul>
				</div>
			</div>
		</div>
	</header>
	<div class="container">
		<div class="app">
			<div class="app-inner clearfix">

	<form name="aspnetForm" method="post" action="CouponsList.aspx?firstPage=1" id="aspnetForm" class="form-horizontal">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTQwODQ5Njg3OQ9kFgJmD2QWCgIBDxYCHgRUZXh0BYQKPHVsIGNsYXNzPSJjbGVhcmZpeCI+DQo8bGkgY2xhc3M9ImRpdmlkZSI+fDwvbGk+DQo8bGkgbWlkPSJtMDEiPjxhIGhyZWY9Ii9BZG1pbi9EZWZhdWx0LmFzcHg/Zmlyc3RQYWdlPTEiIHRpdGxlPSLlupfpk7oiPuW6l+mTujwvYT48L2xpPg0KPGxpIG1pZD0ibTAyIj48YSBocmVmPSIvQWRtaW4vZ29vZHMvcHJvZHVjdG9uc2FsZXMuYXNweD9maXJzdFBhZ2U9MSIgdGl0bGU9IuWVhuWTgSI+5ZWG5ZOBPC9hPjwvbGk+DQo8bGkgbWlkPSJtMDMiPjxhIGhyZWY9Ii9BZG1pbi90cmFkZS9tYW5hZ2VvcmRlci5hc3B4P2ZpcnN0UGFnZT0xIiB0aXRsZT0i6K6i5Y2VIj7orqLljZU8L2E+PC9saT4NCjxsaSBjbGFzcz0iZGl2aWRlIj58PC9saT4NCjxsaSBtaWQ9Im0wNCI+PGEgaHJlZj0iL0FkbWluL21lbWJlci9NZW1iZXJHYWlLdWFuZy5hc3B4P2ZpcnN0UGFnZT0xIiB0aXRsZT0i5Lya5ZGYIj7kvJrlkZg8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PHNwYW4+5oq95aWW5ri45oiPPC9zcGFuPg0KPHVsIGlpZD0ieXhpMDMiPg0KPGxpPjxhIGhyZWY9Ii9BZG1pbi9Qcm9tb3Rpb24vR2FtZUxpc3RzLmFzcHgiIHRpdGxlPSLlubjov5DlpKfovaznm5giPuW5uOi/kOWkp+i9rOebmDwvYT48L2xpPg0KPGxpPjxhIGhyZWY9Ii9BZG1pbi9Qcm9tb3Rpb24vR2FtZUVnZ0xpc3RzLmFzcHgiIHRpdGxlPSLnlq/ni4LnoLjph5Hom4siPueWr+eLgueguOmHkeibizwvYT48L2xpPg0KPGxpPjxhIGhyZWY9Ii9BZG1pbi9Qcm9tb3Rpb24vR2FtZVhpbmdZdW5MaXN0cy5hc3B4IiB0aXRsZT0i5aW96L+Q57+757+755yLIj7lpb3ov5Dnv7vnv7vnnIs8L2E+PC9saT4NCjxsaT48YSBocmVmPSIvQWRtaW4vUHJvbW90aW9uL0dhbWVEYUZ1V2VuTGlzdHMuYXNweCIgdGl0bGU9IuWkp+WvjOe/gSI+5aSn5a+M57+BPC9hPjwvbGk+DQo8bGk+PGEgaHJlZj0iL0FkbWluL1Byb21vdGlvbi9HYW1lR3VhR3VhTGVMaXN0cy5hc3B4IiB0aXRsZT0i5Yiu5Yiu5LmQIj7liK7liK7kuZA8L2E+PC9saT4NCjxsaT48YSBocmVmPSIvQWRtaW4vUHJvbW90aW9uL1ByaXplTGlzdC5hc3B4IiB0aXRsZT0i5aWW5ZOB5Y+R6LSn566h55CGIj7lpZblk4Hlj5HotKfnrqHnkIY8L2E+PC9saT4NCjwvdWw+DQpkGAEFKWN0bDAwJENvbnRlbnRQbGFjZUhvbGRlcjEkZ3JkQ291cG9uZHNMaXN0DzwrAAwCBhUBCENvdXBvbklkCGZk4uq1AAYZYmwTAxSsPFIgEs4LoWA=" />
</div>

<div>

	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="ED048C54" />
</div>
		<div class="page-header">
			<h2>优惠券</h2>
			
		</div>
		<div class="blank">
			<a href="NewCoupon.aspx" class="btn btn-primary">新增优惠券</a>
		</div>
		
		<div id="allProductsDiv">
			<div class="play-tabs">
			   
			   
				<div class="tab-pane active">
					 <div style="margin-top:10px;background-color:#fff">
						<input type="hidden" id="bFinishedHidden" value="False" />
						 <div class="activediv" style="background-color:#fff">
							  <div class="table-page">
				<ul class="nav nav-tabs" role="tablist">
					<li id="tabHeader_couponds" role="presentation" class="active">
						<a href="CouponsList.aspx?bFininshed=false">优惠券</a>
					</li>
					<li id="tabHeader_Finished" role="presentation">
						<a href="CouponsList.aspx?bFininshed=true">已结束优惠券</a>
					</li> 
					<li id="tabHeader_memberCouponds" role="presentation">
						<a href="MemberCouponList.aspx">领用/使用记录</a>
					</li>                                       
				</ul>

				 <div class="page-box" style="margin-right:15px;">
						<div class="page fr">
							<div class="form-group">
								<label for="exampleInputName2">每页显示数量：</label>
								<a href="/Admin/Promotion/CouponsList.aspx?firstPage=1&amp;pagesize=10" class="selectthis">10</a><a href="/Admin/Promotion/CouponsList.aspx?firstPage=1&amp;pagesize=20">20</a><a href="/Admin/Promotion/CouponsList.aspx?firstPage=1&amp;pagesize=40">40</a><a href="/Admin/Promotion/CouponsList.aspx?firstPage=1&amp;pagesize=100">100</a>
							</div>
						</div>
					</div>
				</div>
						<div class="set-switch">
						<div class="form-inline" id="searchDiv">
			
						   <input name="ctl00$ContentPlaceHolder1$txt_name" type="text" id="ctl00_ContentPlaceHolder1_txt_name" class="form-control resetSize" placeholder="优惠券名称" style="width:110px;" />           
							<input name="ctl00$ContentPlaceHolder1$txt_minVal" type="text" id="ctl00_ContentPlaceHolder1_txt_minVal" class="form-control resetSize" placeholder="面值" style="width:110px;" />至
							<input name="ctl00$ContentPlaceHolder1$txt_maxVal" type="text" id="ctl00_ContentPlaceHolder1_txt_maxVal" class="form-control resetSize ml20" placeholder="面值" style="width:110px;" />
							<input name="ctl00$ContentPlaceHolder1$calendarStartDate$txtDateTimePicker" type="text" id="ctl00_ContentPlaceHolder1_calendarStartDate_txtDateTimePicker" class="form-control resetSize" autocomplete="off" placeholder="有效期" style="width: 110px; margin:0px;" />
<script>var ctl00_ContentPlaceHolder1_calendarStartDate_txtDateTimePicker_obj=$("#ctl00_ContentPlaceHolder1_calendarStartDate_txtDateTimePicker").datetimepicker({ format: 'yyyy-mm-dd', minView: 2 ,isadmin:true,isEnd:0});</script>至
							<input name="ctl00$ContentPlaceHolder1$calendarEndDate$txtDateTimePicker" type="text" id="ctl00_ContentPlaceHolder1_calendarEndDate_txtDateTimePicker" class="form-control resetSize" autocomplete="off" placeholder="有效期" style="width: 110px;" />
<script>var ctl00_ContentPlaceHolder1_calendarEndDate_txtDateTimePicker_obj=$("#ctl00_ContentPlaceHolder1_calendarEndDate_txtDateTimePicker").datetimepicker({ format: 'yyyy-mm-dd', minView: 2 ,isadmin:true,isEnd:0});</script>
							<select name="ctl00$ContentPlaceHolder1$ddlCouponType" id="ctl00_ContentPlaceHolder1_ddlCouponType" class="form-control resetSize" style="width:120px;">
	<option selected="selected" value="">优惠券类型</option>
	<option value="1">手工发送</option>
	<option value="2">自助领取</option>
	<option value="3">活动赠送</option>

</select>
							<input type="submit" name="ctl00$ContentPlaceHolder1$btnSeach" value="查询" id="ctl00_ContentPlaceHolder1_btnSeach" class="btn btn-primary resetSize" />

						</div>
						</div>

						 <div class="form-inline" style="margin-bottom: 10px; margin-top:-10px;margin-left:19px; display:none;" id="operateDiv">
							<div class="checkbox"><input type="checkbox" id="selectAll" class="allselect" /> <label for="selectAll">全选</label></div>

						  
							  <input type="submit" name="ctl00$ContentPlaceHolder1$btnDelete" value="批量删除" onclick="return HiConform(&#39;&lt;strong>确定要执行删除操作吗？&lt;/strong>&lt;p>删除优惠券不可恢复！&lt;/p>&#39;, this);" id="ctl00_ContentPlaceHolder1_btnDelete" class="btn resetSize btn-danger" style="margin-left:20px;" />

							<div style="display: none;">
								<input type="submit" name="ctl00$ContentPlaceHolder1$DelBtn" value="" id="ctl00_ContentPlaceHolder1_DelBtn" />
								<input name="ctl00$ContentPlaceHolder1$txt_ids" type="text" id="ctl00_ContentPlaceHolder1_txt_ids" />
							</div>
						</div>
						 </div>

						<div>

</div>
						<div class="bottomPageNumber clearfix">
							<div class="pageNumber">
								<div class="pagination" style="width: auto">
									
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>



		<div class="modal fade" id="previewshow">
			<div class="modal-dialog">
				<div class="modal-content form-horizontal" id="hform">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
							aria-hidden="true">&times;</span></button>
						<h4 class="modal-title" id="modaltitle" style="text-align: left">编辑优惠券</h4>
					</div>
					<div class="modal-body">
						<input name="ctl00$ContentPlaceHolder1$htxtRoleId" type="hidden" id="ctl00_ContentPlaceHolder1_htxtRoleId" />                       

						<div class="form-group">
							<label class="col-xs-3 control-label"><em>*</em>发放总量：</label>
							<div class="form-inline">
								<input name="ctl00$ContentPlaceHolder1$txt_totalNum" type="text" id="ctl00_ContentPlaceHolder1_txt_totalNum" class="form-control" style="width:200px;margin-left: 15px;" />
								<label style="margin-left: 3px;">张</label>
							</div>
						</div>
						<div class="form-group">
							<label class="col-xs-3 control-label">领券限制：</label>
							<div style="position: relative; width: 200px; float: left">
								<select name="ctl00$ContentPlaceHolder1$ddl_maxNum" id="ctl00_ContentPlaceHolder1_ddl_maxNum" class="form-control" style="margin-left: 15px;">
	<option value="1">1张</option>
	<option value="2">2张</option>
	<option value="3">3张</option>
	<option value="4">4张</option>
	<option value="5">5张</option>
	<option value="6">6张</option>
	<option value="7">7张</option>
	<option value="8">8张</option>
	<option value="9">9张</option>
	<option value="10">10张</option>

</select>
								<small class="help-block" style="margin-left: 15px;">每个用户自助领券上限，如不选，则默认为1张</small>
							</div>
						</div>
						<div class="form-group" style="display:none">
							<label class="col-xs-3 control-label"><em>*</em>生效时间：</label>
							<div class="form-inline">
								<input name="ctl00$ContentPlaceHolder1$calendarStartDate2$txtDateTimePicker" type="text" id="ctl00_ContentPlaceHolder1_calendarStartDate2_txtDateTimePicker" class="form-control" autocomplete="off" placeholder="生效时间" style="margin-left: 15px;" />
<script>var ctl00_ContentPlaceHolder1_calendarStartDate2_txtDateTimePicker_obj=$("#ctl00_ContentPlaceHolder1_calendarStartDate2_txtDateTimePicker").datetimepicker({ format: 'yyyy-mm-dd', minView: 2 ,isadmin:true,isEnd:0});</script>                        
							</div>
						</div>

						<div class="form-group" style="display:none">
							<label class="col-xs-3 control-label"><em>*</em>过期时间：</label>
							<div class="form-inline">
								<input name="ctl00$ContentPlaceHolder1$calendarEndDate2$txtDateTimePicker" type="text" id="ctl00_ContentPlaceHolder1_calendarEndDate2_txtDateTimePicker" class="form-control" autocomplete="off" placeholder="过期时间" style="margin-left: 15px;" />
<script>var ctl00_ContentPlaceHolder1_calendarEndDate2_txtDateTimePicker_obj=$("#ctl00_ContentPlaceHolder1_calendarEndDate2_txtDateTimePicker").datetimepicker({ format: 'yyyy-mm-dd', minView: 2 ,isadmin:true,isEnd:0});</script>
							</div>
						</div>
					</div>
					<div class="modal-footer">
						<input type="submit" name="ctl00$ContentPlaceHolder1$btnSubmit" value="确 定" id="ctl00_ContentPlaceHolder1_btnSubmit" class="btn  btn-success" />
						<input name="ctl00$ContentPlaceHolder1$txt_id" type="text" id="ctl00_ContentPlaceHolder1_txt_id" style="display:none" />
						<input name="ctl00$ContentPlaceHolder1$txt_used" type="text" id="ctl00_ContentPlaceHolder1_txt_used" style="display: none" />
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					</div>
				</div>
				<!-- /.modal-content -->
			</div>
			<!-- /.modal-dialog -->
		</div>
		<!-- /.modal -->


		
		<div class="modal fade" id="divqrcode">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
						<h4 class="modal-title">优惠券二维码</h4>
					</div>
					<div class="modal-body" style="text-align: center">
						<image id="imagecode" src=""></image>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					</div>
				</div>
				<!-- /.modal-content -->
			</div>
			<!-- /.modal-dialog -->
		</div>
	</form>

			</div>
		</div>
		<aside class="ui-sidebar sidebar" style="min-height: 533px;">
			<nav class="well" id="menu_left">
				<em class="glyphicon ico-youhuiquan"></em>
<span>优惠券</span>
<ul iid="yxi04">
<li class=" active"><a href="#" title="优惠券列表">优惠券列表</a></li><!--CouponsList.html-->
<li><a href="#" title="会员注册送优惠券">会员注册送优惠券</a></li><!--SetRegisterSendCoupon.html-->
<li><a href="#" title="优惠券手动发放">优惠券手动发放</a></li><!--SendCouponByManager.html-->
</ul>
<em class="glyphicon ico-chuoxiao"></em>
<span>促销活动</span>
<ul iid="yxi01">
<li><a href="#" title="积分兑换">积分兑换</a></li><!--ExChangeList.html-->
<li><a href="#" title="积分抵现">积分抵现</a></li><!--PointToCash.html-->
<li><a href="#" title="分享助力">分享助力</a></li><!--ShareActList.html-->
<li><a href="#" title="满减活动">满减活动</a></li><!--ActivityList.html-->
<li><a href="#" title="限时折扣">限时折扣</a></li><!--LimitedTimeDiscountList.html-->
</ul>
<ul iid="yxi05">
<li><a href="#" title="一元夺宝">一元夺宝</a></li><!--OneyuanList.html-->
<li><a href="#" title="活动退款">活动退款</a></li><!--RefoundList.html-->
<li><a href="#" title="好友砍价">好友砍价</a></li><!--ManagerBargain.html-->
</ul>
<ul iid="yxi02">
<li><a href="#" title="投票调查">投票调查</a></li><!--voteList.html-->
</ul>
<em class="glyphicon ico-youxi"></em>
<span>抽奖游戏</span>
<ul iid="yxi03">
<li><a href="#" title="幸运大转盘">幸运大转盘</a></li><!--GameLists.html-->
<li><a href="#" title="疯狂砸金蛋">疯狂砸金蛋</a></li><!--GameEggLists.html-->
<li><a href="#" title="好运翻翻看">好运翻翻看</a></li><!--GameXingYunLists.html-->
<li><a href="#" title="大富翁">大富翁</a></li><!--GameDaFuWenLists.html-->
<li><a href="#" title="刮刮乐">刮刮乐</a></li><!--GameGuaGuaLeLists.html-->
<li><a href="#" title="奖品发货管理">奖品发货管理</a></li><!--PrizeList.html-->
</ul>

			</nav>
		</aside>
	</div>
	<div class="mt20"></div>
</body>
</html>

